package com.starinside.wp.service.cookbook;


import com.starinside.wp.domain.cookbook.RecipeFood;

import java.util.List;
import java.util.Map;

public interface RecipeFoodService  {
	
	/**
	 * 根据条件查食物
	 * @param  filter 中的参数如下
	 * @param schoolId
	 * @param type 食物类别
	 * @param name
	 * @return
	 */
	
	List<RecipeFood> selectRecipeFoodListByCondition(Map<String, Object> filter);

	/**
	 * 根据学校id 和名字查询食物
	 * @param name
	 * @param areaId
	 * @return
	 */

	RecipeFood selectRecipeFoodByName(String name, String areaId);
	
	/**
	 * 根据模板初始化用户主食等食物
	 * @param areaId
	 * @return
	 */
	
	int insertRecipeFoodByTemplate(String areaId);

	RecipeFood createRecipeFood(String foodName, String areaId, Integer recipeTypeId, String imagePath);

	RecipeFood updateRecipeFood(RecipeFood food);

	RecipeFood selectByAreaIdAndId(String areaId, Long id);

	int deleteRecipeFood(RecipeFood food);

	RecipeFood selectRecipeFoodByAreaIdAndName(String areaId, String foodName);
}